package com.zhou.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @Description : 物流
 * @Author : zyy
 * @Date: 2024/9/26  11:29
 */
@Data
public class Logistics {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @Schema(name = "id", type = "string")
    private String id;

    @TableField("logistics_number")
    @Schema(name = "物流单号", type = "string")
    private String logisticsNumber;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @Schema(name = "创建时间", type = "date")
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @Schema(name = "更新时间", type = "date")
    private Date updateTime;

    @TableField("del_flag")
    @Schema(name = "是否删除", type = "string")
    private String delFlag;

    @TableField("status")
    @Schema(name = "状态", type = "string")
    private String status;

    @TableField("driver_id")
    @Schema(name = "司机id", type = "string")
    private String driverId;

    @TableField("reach_time")
    @Schema(name = "到达时间", type = "date")
    private Date reachTime;
}
